<?php
class Managearticles_Data_Removeaction {
	
	private $database;
	
	public function __construct(){
		$this->database = new Core_Driver_MysqlImproved;
	}
	
	public function removeValues(array $getVars){
		$this->database->connect();
		$pageName = $getVars['name'];
		$pageName = $this->database->escape($pageName);
		$this->database->prepare(
			"DELETE FROM page_settings WHERE page_name = '$pageName';
				"
		);
		$this->database->query();
		$this->database->dataOperations();
		echo '<meta http-equiv="Refresh" content="0;url='.SERVER_ROOT.'?managearticles">';
	}
}